package com.bdqn.crm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.crm.pojo.PageBean;
import com.bdqn.crm.pojo.Pagee;
import com.bdqn.crm.pojo.SysRight;
import com.bdqn.crm.pojo.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleService extends IService<SysRole> {
    List<SysRole> findAllRoles();

    IPage<SysRole> page(String roleName, Page page);

    SysRole selectRoleId(long roleId);

    /**
     * 保存或修改用户（如果有主键ID则修改，没有则保存）
     *
     * @param role
     * @return
     */
    boolean saveRole(SysRole role);



//    Pagee<SysRole> page(String roleName, Integer pageIndex);

}
